package cn.steel.domain.dto;

import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Positive;
import lombok.Data;

/**
 * @author: zhaoyuhan
 * @date: 2025/5/1
 * @description: 库存DTO定义
 */
@Data
public class InventoryUpdateDto {
    @NotNull(message = "商品ID不能为空")
    private Long productId;

    @NotNull(message = "地区不能为空")
    private String region;

    @NotNull(message = "购买数量不能为空")
    @Positive(message = "购买数量必须大于0")
    private Integer quantity;  // 购买数量(吨)
}
